package com.sky.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class EmployeePageQueryDTO implements Serializable {

    //员工姓名
    @Size(min = 3, max = 20, message = "用户名长度必须在3到20个字符之间")
    @ApiModelProperty("用户名")
    private String name;

    //页码
    @NotNull(message = "page不能为空")
    @ApiModelProperty("page")
    private int page;

    //每页显示记录数
    @NotNull(message = "pageSize不能为空")
    @ApiModelProperty("pageSize")
    private int pageSize;

}
